﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    <script src="~/Scripts/jquery.form.min.js"></script>
    <script src="~/Scripts/gbh/uploadPage.js"></script>
}
<div id="LoadingImage">
        <img src="/img/circle-loading-animation.gif" alt="" style="width: 200px; height: 200px" />
    </div>
<div class="easyui-layout" style="width:1200px;height:300px;">
    <div data-options="region:'west',title:'STOCK BALANCE',iconCls:'icon-ok'" style="width:30%;">
        <div class="easyui-panel" title="Upload File" style="width:350px;padding:30px 70px 50px 70px">
            <form target="_blank" enctype="multipart/form-data" method="post" action="/api/Upload/PostFormDataStockBalance/" id="ajaxUploadDataStock" novalidate="novalidate">
                <div style="margin-bottom:20px">
                    <div>IMPORT DATA STOCK BALANCE:</div>
                    <input class="easyui-filebox" name="file1" data-options="prompt:'Choose a file...'" style="width:100%">
                </div>

                <div>
                    <input type="submit" value="Upload" id="ajaxUploadButton" class="btn">
                </div>
            </form>
        </div>
    </div>
    <div data-options="region:'center',split:true,title:'ประวัติ upload Stock Balance',collapsible:false" style="width:30%;">
        <table id="stockbalanceImportHistory" class="easyui-datagrid">
            <thead>
                <tr>

                    <th field="Filename" width="150" align="center">
                        ไฟล์ที่ upload
                    </th>
                    <th field="NumberOfRow" width="100" align="center">
                        จำนวน record
                    </th>
                    <th field="DateTime" width="100" align="center">
                        วันที่ upload
                    </th>

                </tr>
            </thead>

        </table>
    </div>
    <div data-options="region:'east',title:'STOCK BALANCE',iconCls:'icon-ok'" style="width:40%;">
        <table id="stockbalanceImport" class="easyui-datagrid">
            <thead>
                <tr>

                    <th field="product_id" width="150" align="center">
                        รหัสสินค้า
                    </th>
                    <th field="product_name" width="200" align="center">
                        ชื่อสินค้า
                    </th>
                    <th field="location_id" width="70" align="center">
                        Location
                    </th>
                    <th field="qty" width="50" align="center">
                        จำนวน
                    </th>
                    <th field="value" width="100" align="center">
                        มูลค่า
                    </th>

                </tr>
            </thead>

        </table>
    </div>
</div>

<div class="easyui-layout" style="width:1200px;height:300px;">
    <div data-options="region:'west',title:'Sell OUT',iconCls:'icon-ok'" style="width:30%;">
        <div class="easyui-panel" title="Upload File" style="width:350px;padding:30px 70px 50px 70px">
            <form target="_blank" enctype="multipart/form-data" method="post" action="/api/Upload/PostFormData/" id="ajaxUploadSellOut" novalidate="novalidate">
                <div style="margin-bottom:20px">
                    <div>IMPORT DATA SELL OUT:</div>
                    <input class="easyui-filebox" name="file1" data-options="prompt:'Choose a file...'" style="width:100%">
                </div>

                <div>
                    <input type="submit" value="Upload" id="ajaxUploadButton" class="btn">

                </div>
            </form>
        </div>
    </div>
    <div data-options="region:'center',split:true,title:'ประวัติ upload Sell Out',collapsible:false" style="width:30%;">

        <table id="selloutImportHistory" class="easyui-datagrid">
            <thead>
                <tr>
                    <th field="Filename" width="150" align="center">
                        ไฟล์ที่ upload
                    </th>
                    <th field="NumberOfRow" width="100" align="center">
                        จำนวน record
                    </th>
                    <th field="DateTime" width="100" align="center">
                        วันที่ upload
                    </th>

                </tr>
            </thead>

        </table>
    </div>
    <div data-options="region:'east',title:'SELL OUT',iconCls:'icon-ok'" style="width:40%;">
        <table id="selloutImport" class="easyui-datagrid">
            <thead>
                <tr>
                    <th field="product_id" width="150" align="center">
                        รหัสสินค้า
                    </th>
                    <th field="product_name" width="200" align="center">
                        ชื่อสินค้า
                    </th>
                    <th field="location_id" width="70" align="center">
                        Location
                    </th>
                    <th field="qty" width="50" align="center">
                        จำนวน
                    </th>
                    <th field="value" width="100" align="center">
                        มูลค่า
                    </th>

                </tr>
            </thead>

        </table>
    </div>
</div>

